package com.party.admin.task;

import com.party.core.service.crowdfund.biz.CrowdfundReviseBizService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 校正众筹数据
 * Created by wei.li
 *
 * @date 2017/4/28 0028
 * @time 17:53
 */
@Component(value = "quartzReviseCrowdfund")
public class QuartzReviseCrowdfund {

    @Autowired
    private CrowdfundReviseBizService crowdfundReviseBizService;

    protected static Logger logger = LoggerFactory.getLogger(QuartzReviseCrowdfund.class);

    public void revise(){
        logger.info("校正众筹数据开始");
        crowdfundReviseBizService.revise();
        logger.info("校正众筹数据结束");
    }

    public void targetRevise(){
        logger.info("校正众筹数项目数据开始");
        crowdfundReviseBizService.targetRevise();
        logger.info("校正众筹数项目数据结束");
    }

}
